var dom002 =
  '<div id="p0y1" class="bx-nav height-light-area">\
<ul id="p0y1ul" class="nav-list1">\
</ul>\
</div>\
<div id="p0y2">\
<div id="AREA002">\
<div id="AREA002x0" class="left-arrow"><img src="/custom-templates/images/home/xiangzuo.png"></div>\
<div id="AREA002x1">\
    <div id="AREA002x1y0">\
        <div id="AREA002x1y0x0" class="pos_box_style"  tabindex="-1">\
        </div>\
        <div id="AREA002x1y0x1">\
            <ul id="AREA002x1y0x1ul" class="pos_box_style">\
            </ul>\
        </div>\
    </div>\
    <div id="AREA002x1y1">\
        <ul id="AREA002x1y1ul" class="pos_box_style">\
        </ul>\
    </div>\
</div>\
<div id="AREA002x0" class="left-arrow"><img src="/custom-templates/images/home/xiangyou.png"></div>\
</div></div>';
/* 
del:样式调整为数组
<div id="AREA002x1y0x1">\
    <ul id="AREA002x1y0x1ul" class="pos_box_style">\
    </ul>\
</div>\
*/

var pageData002 = {
  data: {
    y0x0: {
      type: "tag",
      data: [{
        img: "/custom-templates/images/defaultImg2.png",
        title: "占位文字"
      },]
    },
    y0x1: {
      type: "ul",
      data: [
        {
          img: "/custom-templates/images/defaultImg2.png",
          title: "占位文字"
        },
        {
          img: "/custom-templates/images/defaultImg2.png",
          title: "占位文字"
        }
      ]
    },
    y1: {
      type: "ul",
      data: [
        {
          img: "/custom-templates/images/defaultImg2.png",
          title: "占位文字"
        },
        {
          img: "/custom-templates/images/defaultImg2.png",
          title: "占位文字"
        },
        {
          img: "/custom-templates/images/defaultImg2.png",
          title: "占位文字"
        },
        {
          img: "/custom-templates/images/defaultImg2.png",
          title: "占位文字"
        },
        {
          img: "/custom-templates/images/defaultImg2.png",
          title: "占位文字"
        }
      ]
    }
  }
};
$("#custom-template-wrap").html(dom002);
window.initArea002 = function(){
    fillNowArea(pageData002.data,'002')
};


// 有几块区域需要编辑
var divs = ["AREA002x1y0x0", "AREA002x1y0x1", "AREA002x1y1"];
window.OPTIONS = {
    "AREA002x1y0x0": {
        "count": 1,// 资源个数
        "area": "y0x0",
        "areaType":"area",
        "areaId":"002"
    },
    "AREA002x1y0x1": {
        "count": 2,// 资源个数
        "area":"y0x1",
        "areaType":"area",
        "areaId":"002"
    },
    "AREA002x1y1": {
        "count": 5,// 资源个数
        "area":"y1",
        "areaType":"area",
        "areaId":"002"
    }
};
$("#custom-template-wrap").html(dom002);
// 头部高亮
addHeadList('直播')
// 填充模板区域
initArea002();